# !/bin/sh

from view.console_view import ConsoleView
import argparse
import sys
	
def main():
	parser = argparse.ArgumentParser(description='Ordered copy of music folders to SD/USB.')
	parser.add_argument('sources', metavar='src', nargs='+', help='Source folders or files.')
	parser.add_argument('target', metavar='tgt', help='Target folder')
	parser.add_argument('--id3', action="store_true", help='Save the folder in the order described in ID3 song number')
	args = parser.parse_args()
	
	cv = ConsoleView(args.sources, args.target, args.id3)
	cv.run()
			
if __name__ == "__main__":
	sys.exit(main())
